// pages/classification/index.ts
Page({

  /**
   * 页面的初始数据
   */
  data: {
    checkMenuIndex: 0,
    menuList: [
      {
        title: "建工",
        children: [
          {
            type: 0,
            text: "/images/classification/good.jpg"
          },
          {
            type: 1,
            text: "建工"
          },
          {
            type: 2,
            data: [
              {
                url: "/images/classification/miniIcon.jpg",
                text: "初级建工"
              },
            ]
          }
        ]
      },
      {
        title: "互联网",
        children: [
          {
            type: 1,
            text: "互联网"
          },
          {
            type: 2,
            data: [
              {
                url: "/images/classification/classification_07.png",
                text: "互联网营销师"
              },
              {
                url: "/images/classification/classification_09.png",
                text: "平面UI设计"
              },
              {
                url: "/images/classification/classification_17.png",
                text: "计算机二级"
              },
            ]
          }
        ]
      },
      {
        title: "考研",
        children: [
          {
            type: 1,
            text: "考研"
          },
          {
            type: 2,
            data: [
              {
                url: "/images/classification/classification_01.png",
                text: "MBA/管综考研"
              },
              {
                url: "/images/classification/classification_02.png",
                text: "MPAcc会计考研"
              },
              {
                url: "/images/classification/classification_03.png",
                text: "教育类考研"
              },
              {
                url: "/images/classification/classification_19.png",
                text: "考研政治"
              },
              {
                url: "/images/classification/classification_27.png",
                text: "考研英语"
              },
              {
                url: "/images/classification/classification_29.png",
                text: "同等学力申硕"
              },

            ]
          }
        ]
      },
      {
        title: "公考",
        children: [
          {
            type: 1,
            text: "公考"
          },
          {
            type: 2,
            data: [
              {
                url: "/images/classification/classification_04.png",
                text: "省考公务员"
              },
              {
                url: "/images/classification/classification_05.png",
                text: "国考公务员"
              },
              {
                url: "/images/classification/classification_06.png",
                text: "事业单位"
              },
            ]
          }
        ]
      },
      {
        title: "教师",
        children: [
          {
            type: 1,
            text: "教师"
          },
          {
            type: 2,
            data: [
              {
                url: "/images/classification/classification_10.png",
                text: "幼儿教师资格证"
              },
              {
                url: "/images/classification/classification_11.png",
                text: "小学教师资格证"
              },
              {
                url: "/images/classification/classification_12.png",
                text: "中学教师资格证"
              },
              {
                url: "/images/classification/classification_13.png",
                text: "幼儿教师招聘"
              },
              {
                url: "/images/classification/classification_14.png",
                text: "小学教师招聘"
              },
              {
                url: "/images/classification/classification_15.png",
                text: "中学教师招聘"
              },
              {
                url: "/images/classification/classification_16.png",
                text: "家庭教育&成长教练"
              },

            ]
          }
        ]
      },

      {
        title: "其他",
        children: [
          {
            type: 1,
            text: "金融"
          },
          {
            type: 2,
            data: [
              {
                url: "/images/classification/miniIcon.jpg",
                text: "CFA特许金融分析师"
              },
              {
                url: "/images/classification/miniIcon.jpg",
                text: "证券专业水平测试"
              },
              {
                url: "/images/classification/miniIcon.jpg",
                text: "证券专项"
              },
              {
                url: "/images/classification/miniIcon.jpg",
                text: "期贷从业"
              },
              {
                url: "/images/classification/miniIcon.jpg",
                text: "基金从业资格证"
              },

            ]
          },

          {
            type: 1,
            text: "自考"
          },
          {
            type: 2,
            data: [
              {
                url: "/images/classification/miniIcon.jpg",
                text: "会计自考专"
              },
              {
                url: "/images/classification/miniIcon.jpg",
                text: "会计自考本"
              },
              {
                url: "/images/classification/miniIcon.jpg",
                text: "行政管理自考专"
              },
              {
                url: "/images/classification/miniIcon.jpg",
                text: "行政管理自考本"
              },
              {
                url: "/images/classification/miniIcon.jpg",
                text: "工商企业管理自考专"
              },
              {
                url: "/images/classification/miniIcon.jpg",
                text: "工商企业管理自考本"
              },
              {
                url: "/images/classification/miniIcon.jpg",
                text: "汉语言自考专"
              },
              {
                url: "/images/classification/miniIcon.jpg",
                text: "汉语言自考本"
              },
            ]
          }
        ]
      },
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad() {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  },
  openIndex() {
    //跳到首页
    wx.switchTab({
      url: "/pages/index/index",
    })
  }
})